package com.android.mail.ui;

import android.app.Activity;
import android.content.Context;
import android.os.Bundle;

public abstract class AbstractMailActivity extends Activity implements RestrictedActivity{

	private final UiHandler mUiHandler;
	
	public AbstractMailActivity() {
		mUiHandler = new UiHandler(); 
	}
	
	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		mUiHandler.setEnabled(true);
	}
	
	@Override
	protected void onStart() {
		super.onStart();
		mUiHandler.setEnabled(true);
	}
	
	@Override
	protected void onSaveInstanceState(Bundle outState) {
		super.onSaveInstanceState(outState);
		mUiHandler.setEnabled(true);
	}
	
	@Override
	public Context getActivityContext() {
		return this;
	}
	
	
}
